<include file="public@header"/>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">所有留言</a></li>
    </ul>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>姓名</th>
                <th>手机/固话</th>
                <th width="50">QQ</th>
                <th width="65">微信</th>
                <th width="90">时间</th>
                <th width="90">操作</th>
            </tr>
            </thead>
            <foreach name="messages" item="vo">
                <tr>
                    <td><b>{$vo.id}</b></td>
                    <td>
                        {$vo.truename}
                    </td>
                    <td>
                        {$vo.tel}
                    </td>
                    <td><a href="qq:{$vo.qq}" style="text-decoration: none">{$vo.qq}</a></td>
                    <td>{$vo.wechat}</td>
                    <td>
                            {:date('Y-m-d H:i',$vo['create_time'])}
                    </td>
                    <td>
                        <a href="{:url('AdminArticle/edit',array('id'=>$vo['id']))}" style="text-decoration: none" class="seeMessage" data-message="{$vo.content}">{:lang('查看留言')}</a>
                    </td>
                </tr>
            </foreach>
            <tfoot>
            <tr>
                <th width="50">ID</th>
                <th>姓名</th>
                <th>手机/固话</th>
                <th width="50">QQ</th>
                <th width="65">微信</th>
                <th width="120">时间</th>
                <th width="90">操作</th>
            </tr>
            </tfoot>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }

    $(function () {
        setCookie("refersh_time", 0);
        Wind.use('artDialog','iframeTools', function () {
            //批量复制
            $(document).on('click','.seeMessage',function (e) {
                e.preventDefault();
                var context = $(this).attr('data-message');
                art.dialog.through({
                    id: 'success',
                    content: context,
                    cancelVal: '关闭',
                    cancel: true
                });
            })

        });
    });
</script>
</body>
</html>